<template>
	<view>
		<scroll-view class="scroll" scroll-y>
			<!-- 订单数据 -->
			<view>
				<view class="item order fcs" v-for="(item, index) in 10" :key="index">
					<view class="l">
						<view class="img">
							<image class="i" src="@/static/commodity.png" mode=""></image>
						</view>
						<view class="name">
							<view class="text">
								商品名称
							</view>
						</view>
					</view>
					<view class="r">
						<u-button shape="circle" :custom-style="submitStyle" @click="toPath">编辑</u-button>
					</view>
				</view>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				submitStyle: {
					color: '#FFF',
					background: '#F3060D',
					width: '167rpx',
					height: '64rpx'
				},
			};
		},
		methods: {
			toPath(path) {
				uni.navigateTo({
					url:'/pages/store_settings/warning_situation'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.scroll {
		height: calc(100vh - 82rpx);
		padding: 0 20rpx;
		box-sizing: border-box;

		.sales-promotion {
			.r {
				width: calc(100% - 28rpx - 160rpx);
				height: 160rpx;
				display: flex;
				flex-direction: column;
				justify-content: space-between;

				.ibt {
					color: #383838;
					font-size: 26rpx;
					// font-weight: 500;
				}

				.t {
					.il {
						color: #383838;
						font-size: 30rpx;
						font-weight: 700;
					}
				}
			}

			.l {
				margin-right: 28rpx;

				.i {
					width: 160rpx;
					height: 160rpx;
					border-radius: 10rpx;
				}
			}
		}

		.balance {
			.r {
				width: calc(100% - 28rpx - 160rpx);
				height: 160rpx;
				display: flex;
				flex-direction: column;
				justify-content: space-between;

				.text {
					color: #383838;
					font-size: 26rpx;
					// font-weight: 500;
				}

				.t {
					color: #383838;
					font-size: 30rpx;
					font-weight: 700;
				}
			}

			.l {
				margin-right: 28rpx;

				.i {
					width: 160rpx;
					height: 160rpx;
					border-radius: 10rpx;
				}
			}
		}

		.order {
			.r {
				height: 160rpx;
				display: flex;
				align-items: flex-end;
			}

			.l {
				display: flex;

				.name {
					font-size: 26rpx;
					font-weight: 400;
					color: #383838;

					.text {
						margin-bottom: 6rpx;
					}
				}

				.img {
					margin-right: 28rpx;

					.i {
						width: 160rpx;
						height: 160rpx;
						border-radius: 10rpx;
					}
				}
			}
		}
	}

	.item {
		padding: 30rpx;
		box-sizing: border-box;
		border-radius: 10rpx;
		background-color: #FFF;
		margin-top: 20rpx;
	}

	.fcs {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
</style>
<style>
	page {
		background-color: #F4F5F7;
	}
</style>